package com.sunchangpeng.wechat.core.http;

import okhttp3.MediaType;

public final class HttpMediaType {
    public static final MediaType ALL;
    public static final String ALL_VALUE = "*/*";

    public final static MediaType APPLICATION_ATOM_XML;
    public final static String APPLICATION_ATOM_XML_VALUE = "application/atom+xml";

    public final static MediaType APPLICATION_FORM_URLENCODED;
    public final static String APPLICATION_FORM_URLENCODED_VALUE = "application/x-www-form-urlencoded";

    public final static MediaType APPLICATION_JSON;
    public final static String APPLICATION_JSON_VALUE = "application/json";

    public final static MediaType APPLICATION_JSON_UTF8;
    public final static String APPLICATION_JSON_UTF8_VALUE = "application/json;charset=UTF-8";

    public final static MediaType APPLICATION_OCTET_STREAM;
    public final static String APPLICATION_OCTET_STREAM_VALUE = "application/octet-stream";

    public final static MediaType APPLICATION_PDF;
    public final static String APPLICATION_PDF_VALUE = "application/pdf";

    public final static MediaType APPLICATION_RSS_XML;
    public final static String APPLICATION_RSS_XML_VALUE = "application/rss+xml";

    public final static MediaType APPLICATION_XHTML_XML;
    public final static String APPLICATION_XHTML_XML_VALUE = "application/xhtml+xml";

    public final static MediaType APPLICATION_XML;
    public final static String APPLICATION_XML_VALUE = "application/xml";

    public final static MediaType IMAGE_GIF;
    public final static String IMAGE_GIF_VALUE = "image/gif";

    public final static MediaType IMAGE_JPEG;
    public final static String IMAGE_JPEG_VALUE = "image/jpeg";

    public final static MediaType IMAGE_PNG;
    public final static String IMAGE_PNG_VALUE = "image/png";

    public final static MediaType MULTIPART_FORM_DATA;
    public final static String MULTIPART_FORM_DATA_VALUE = "multipart/form-data";

    public final static MediaType TEXT_EVENT_STREAM;
    public final static String TEXT_EVENT_STREAM_VALUE = "text/event-stream";

    public final static MediaType TEXT_HTML;
    public final static String TEXT_HTML_VALUE = "text/html";

    public final static MediaType TEXT_MARKDOWN;
    public final static String TEXT_MARKDOWN_VALUE = "text/markdown";

    public final static MediaType TEXT_PLAIN;
    public final static String TEXT_PLAIN_VALUE = "text/plain";

    public final static MediaType TEXT_XML;
    public final static String TEXT_XML_VALUE = "text/xml";


    static {
        ALL = MediaType.parse(ALL_VALUE);
        APPLICATION_ATOM_XML = MediaType.parse(APPLICATION_ATOM_XML_VALUE);
        APPLICATION_FORM_URLENCODED = MediaType.parse(APPLICATION_FORM_URLENCODED_VALUE);
        APPLICATION_JSON = MediaType.parse(APPLICATION_JSON_VALUE);
        APPLICATION_JSON_UTF8 = MediaType.parse(APPLICATION_JSON_UTF8_VALUE);
        APPLICATION_OCTET_STREAM = MediaType.parse(APPLICATION_OCTET_STREAM_VALUE);
        APPLICATION_PDF = MediaType.parse(APPLICATION_PDF_VALUE);
        APPLICATION_RSS_XML = MediaType.parse(APPLICATION_RSS_XML_VALUE);
        APPLICATION_XHTML_XML = MediaType.parse(APPLICATION_XHTML_XML_VALUE);
        APPLICATION_XML = MediaType.parse(APPLICATION_XML_VALUE);
        IMAGE_GIF = MediaType.parse(IMAGE_GIF_VALUE);
        IMAGE_JPEG = MediaType.parse(IMAGE_JPEG_VALUE);
        IMAGE_PNG = MediaType.parse(IMAGE_PNG_VALUE);
        MULTIPART_FORM_DATA = MediaType.parse(MULTIPART_FORM_DATA_VALUE);
        TEXT_EVENT_STREAM = MediaType.parse(TEXT_EVENT_STREAM_VALUE);
        TEXT_HTML = MediaType.parse(TEXT_HTML_VALUE);
        TEXT_MARKDOWN = MediaType.parse(TEXT_MARKDOWN_VALUE);
        TEXT_PLAIN = MediaType.parse(TEXT_PLAIN_VALUE);
        TEXT_XML = MediaType.parse(TEXT_XML_VALUE);
    }
}
